<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/common_setting_unit.php"); ?>


<?php
if(!isset($_SESSION)){
session_start();
}

$act = $_REQUEST['act'];
$type = $_REQUEST['type'];
$id = $_REQUEST['id'];



//公用模式
global $table_Prefix;




if($act == 'load' ){ 
	
	
	$detail_list = select_lines_all_items($table_Prefix . "detail", ' nid  desc ',"belong = '$type' and nid = $id "); 
	

	if(!$detail_list){
			
		$result['error'] = 1;
		$result['message'] = '当前查询信息没结果';
		die(json_encode($result));
		exit;	
	}
	
	$smarty->assign('detail_list',     $detail_list); 
	
	
	$result['error'] = 0;
	$result['message'] = '';
	$result['content'] = $smarty->fetch('product_list.lbi');
	
	die(json_encode($result));
	exit;	

}
	
	

?>